home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1995 May / PC Direct CD-ROM (May 1995).ISO / ipe / bri120e / disk1 / lib4esd.lib / NETINS.SCR < prev    next >
Encoding:
Text File  |  1994-01-17  |  4.0 KB  |  66 lines

  1. ;This script was written to perform the workstation install of cc:mail.  
  2. ;The install will occur where it finds the win.ini (either on the PC or
  3. ;on a networked installation of Windows.
  4. ;The script can be used as a template for network installations of any
  5. ;type of application.  This script makes all the necesary changes to the
  6. ;autoexec.bat and the win.ini and it copies the necessary file to the
  7. ;user's windows.
  8. DEFINE "FREE" INTEGER
  9. DEFINE "SPACE" INTEGER
  10. ASSIGN SPACE [DISKSPACE]
  11. ASSIGN FREE 150
  12. IF SPACE >= FREE
  13. ;These lines determine if there is enough disk space on the workstation
  14. ;for the fileset.  If there is not enough space the script will not run.
  15. ;Replace the minimum amount with the amount you need for the install in
  16. ;the "Assign free" line.
  17.     MDIR    [WINDIR] "CCMAIL"
  18. ;This line creates a directory called ccmail in the windows directory.
  19.     DEFINE "WIN" STRING
  20.     STRCOPY WIN [WINDIR]
  21.     APPENDPATH WIN    "CCMAIL"
  22.     MDIR WIN "CC1DIR"
  23. ;These lines build the path to the new ccmail directory and create a 
  24. ;directory called cc1dir in it.
  25.     APPENDPATH WIN "CC1DIR"
  26.     COPY "F:\FUSION\TEMP" "WMAIL.INI" WIN "WMAIL.INI"
  27. ;These lines create the necessary directories and they copy the appropriate
  28. ;files after the directories have been created.  This can also be 
  29. ;accomplished in the package by using the default path field and by 
  30. ;including a fileset in the package. If you do use a fileset for distributing
  31. ;the file comment out the previous 2 lines of the script.
  32.     SETSYSFILE [BOOT_ROOT] "AUTOEXEC.BAT"
  33.     ADDPATH    "PATH" "E:\ADMIN" NULL    BEFORE
  34. ;This adds a path statement to the autoexec.bat.
  35.     SETSYSFILE [WINDIR] "WIN.INI"
  36.     WRITEINISTR "WIN.INI"    "COMPATIBILITY"    "CCMAIL" "0x0008"
  37.     WRITEINISTR "WIN.INI" "CCMAIL" "USER1NAME" ""
  38.     WRITEINISTR "WIN.INI" "CCMAIL" "USER1DIR" "C:\WINDOWS\CC1DIR"
  39.     WRITEINISTR "WIN.INI" "CCMAIL" "LASTIDUSED" "1"
  40.     WRITEINISTR "WIN.INI" "CCMAIL" "LASTUSERID" "1"
  41.     WRITEINISTR "WIN.INI" "CCMAIL" "PROGRAMPATH" "E:\ADMIN"
  42.     WRITEINISTR "WIN.INI" "CCMAIL" "USER0DIR" "WINDOWS\CCMAIL"
  43.     WRITEINISTR "WIN.INI" "CCMAIL" "PROGVER" "200"
  44.     WRITEINISTR "WIN.INI" "CCMAIL" "OPTIONS" "3925119"
  45.     WRITEINISTR "WIN.INI" "CCMAIL" "CONFIRM" "63"
  46.     WRITEINISTR "WIN.INI" "CCMAIL" "MESSAGE" "394404"
  47.     WRITEINISTR "WIN.INI" "CCMAIL" "LIST" "16777472"
  48.     WRITEINISTR "WIN.INI" "CCMAIL" "DEFATTR" "29"
  49.     WRITEINISTR "WIN.INI" "CCMAIL" "TABSTOPS" "8"
  50.     WRITEINISTR "WIN.INI" "CCMAIL" "LMARGIN" "0"
  51.     WRITEINISTR "WIN.INI" "CCMAIL" "RMARGIN" "80"
  52.     WRITEINISTR "WIN.INI" "CCMAIL" "PATH" "E:\CCMAIL"
  53.     WRITEINISTR "WIN.INI" "MAIL" "SMI" "1"
  54.     WRITEINISTR "WIN.INI" "LOTUS MAIL" "APPLICATION" "WMAIL"
  55.     WRITEINISTR "WIN.INI" "LOTUS MAIL" "PROGRAM" "E:\Admin\WMAIL.exe sendmail"
  56. ;These lines add lines to the win.ini
  57.     ADDGROUP "cc:MAIL"
  58.     ADDITEM    "cc:MAIL" "cc:MAIL" "E:\ADMIN\WMAIL.EXE"
  59. ;These lines add a group and a program item to the users' windows install.
  60. ;The group and item will be added the next time the user runs Windows.
  61. ELSE
  62. EXIT 1
  63. ;The script does not run if there is not enough room to copy the file.
  64. ENDIF
  65.     
  66.